Don't use bitwise operators on booleans. (#130923, reported by Telsa
authorMatthias Clasen <maclas@gmx.de>
Thu, 8 Jan 2004 21:01:21 +0000 (21:01 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 8 Jan 2004 21:01:21 +0000 (21:01 +0000)
Thu Jan  8 22:01:14 2004  Matthias Clasen  <maclas@gmx.de>

* queryloaders.c (loader_sanity_check): Don't use bitwise operators
on booleans.  (#130923, reported by Telsa Gwynne, fix by Dave Jones)

gdk-pixbuf/ChangeLog
gdk-pixbuf/queryloaders.c

index 6a18fb314545e389e04f1f989b1c1b234d8e4530..a0a2b932cb828a2892126a0d279e908af81c2d14 100644 (file)
@@ -1,3 +1,8 @@
+Thu Jan  8 22:01:14 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * queryloaders.c (loader_sanity_check): Don't use bitwise operators
+       on booleans.  (#130923, reported by Telsa Gwynne, fix by Dave Jones)
+
 2004-01-06  Federico Mena Quintero  <federico@ximian.com>
 
        * gdk-pixbuf-io.c (gdk_pixbuf_save): Escape an ampersand in the
index 41c4c3669d144fa695cd89d7731b2566bf88489f..f5428f30dad0d179899e5f0d9da2270979f73219 100644 (file)
@@ -100,7 +100,7 @@ loader_sanity_check (const char *path, GdkPixbufFormat *info, GdkPixbufModule *v
                goto error;
        }
 
-       if ((info->flags & GDK_PIXBUF_FORMAT_WRITABLE) & !vtable->save) 
+       if ((info->flags & GDK_PIXBUF_FORMAT_WRITABLE) && !vtable->save) 
        {
                error = "loader claims to support saving but doesn't implement save";
                goto error;